<template>
  <div>
    <el-container>
      <el-aside width="200px">
        <!-- 左侧菜单栏 -->
        <v-side></v-side>
      </el-aside>
      <el-container>
        <el-header>
          <!-- 头部组件 -->
        <v-header></v-header>
        </el-header>
        <el-main>
          <!-- 中间会变的内容 -->
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import vSide from '../components/vside.vue'
import vHeader from '../components/vheader.vue'
export default {
  components: {
    vSide,
    vHeader
  }
};
</script>

<style>
.el-header {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  height: 100vh;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
}

body > .el-container {
  margin-bottom: 40px;
  height: 100vh;
}

</style>